/**
 * Created by dbwyxl on 2017/8/24.
 */
module.exports =function($cookies,$scope, $rootScope, $state,httpservice, templateService){


    //验证是否开启
    $scope.isopen = false;
    $scope.userInfo = {};

    $scope.init = function () {
        templateService.findUserInfo().then(function(data){
            if(data.data.code==1){
                $scope.userInfo=data.data.data;
            }
        })
    }

    $scope.init();

    //开启接案台
    $scope.addOpenConsult = function () {
        templateService.addOpenConsult().then(function(data){
            if(data.data.code==1){
                $scope.userInfo=data.data.data;
            }
        })
    }

};
